package net.bolue.console.data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.bolue.sysmng.tblbean.ColInfo;
import net.bolue.sysmng.tblbean.InsRes;
import net.bolue.web.entry.FormDataOption;
import net.bolue.web.entry.FormElemTag;

/**
 * 新增信息
 * @author Administrator
 *
 */
public class InsertInfo extends DataBean{
	
	/**
	 * 子系统
	 */
	private String subSys;
	
	/**
	 * 新增标识
	 */
	private String insertId;

	/**
	 * 新增资源
	 */
	private InsRes insRes;
	
	/**
	 * 新增数据列
	 */
	private List<ColInfo> colInfoList;
	
	/**
	 * 新增form标签
	 */
	private List<FormElemTag> elemTagList;
	
	/**
	 * 字典
	 */
	private Map<String,List<FormDataOption>> dicsMap;
	
	private Map<String,ColInfo> colInfoMap;
	
	private Map<String,Object> insertMap;
	
	/**
	 * 插入列
	 */
	private String[] insColArray;
	
	public InsertInfo(){
		
	}
	
	public InsertInfo(String subSys,String insertId){
		this.subSys = subSys;
		this.insertId = insertId;
	}
	
	public String getSubSys() {
		return subSys;
	}

	public void setSubSys(String subSys) {
		this.subSys = subSys;
	}

	public String getInsertId() {
		return insertId;
	}

	public void setInsertId(String insertId) {
		this.insertId = insertId;
	}

	public InsRes getInsRes() {
		return insRes;
	}

	public void setInsRes(InsRes insRes) {
		this.insRes = insRes;
	}

	public List<ColInfo> getColInfoList() {
		return colInfoList;
	}

	public void setColInfoList(List<ColInfo> colInfoList) {
		this.colInfoList = colInfoList;
	}

	public List<FormElemTag> getElemTagList() {
		return elemTagList;
	}

	public void setElemTagList(List<FormElemTag> elemTagList) {
		this.elemTagList = elemTagList;
	}

	public Map<String, List<FormDataOption>> getDicsMap() {
		return dicsMap;
	}

	public void setDicsMap(Map<String, List<FormDataOption>> dicsMap) {
		this.dicsMap = dicsMap;
	}

	public Map<String, ColInfo> getColInfoMap() {
		if(colInfoMap==null&&this.colInfoList!=null){
			colInfoMap = new HashMap<String,ColInfo>();
			for(ColInfo colInfo : colInfoList){
				colInfoMap.put(colInfo.getColName(), colInfo);
			}
		}
		return colInfoMap;
	}

	public void setColInfoMap(Map<String, ColInfo> colInfoMap) {
		this.colInfoMap = colInfoMap;
	}

	public Map<String, Object> getInsertMap() {
		return insertMap;
	}

	public void setInsertMap(Map<String, Object> insertMap) {
		this.insertMap = insertMap;
	}

	public String[] getInsColArray() {
		return insColArray;
	}

	public void setInsColArray(String[] insColArray) {
		this.insColArray = insColArray;
	}
	
}
